﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 影片售票系统
{
    public partial class gly : Form
    {
        public gly()
        {
            InitializeComponent();
        }

        private void gly_Load(object sender, EventArgs e)
        {
            label4.BackColor = Color.Transparent;
            label3.BackColor = Color.Transparent;
            label2.BackColor = Color.Transparent;
            linkLabel2.BackColor = Color.Transparent;

         
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string zhanghao = this.textBox2.Text.Trim();
            string mima = this.textBox1.Text.Trim();
            string sql = string.Format("select * from GLY_1 where zhanghao = '{0}'and mima = '{1}'", zhanghao, mima);
            DataTable table = common.DBHelper.read(sql);
            if (table.Rows.Count > 0)
            {
                MessageBox.Show("登录成功");
            }
            else
            {
                MessageBox.Show("您的账号或者密码错误..");
            }
        }
    }
}
